package com.swj.modules.monitor.controller;


import com.swj.common.core.utils.ResponseUtil;
import com.swj.common.core.model.web.RestResult;
import com.swj.modules.monitor.vo.Server;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//服务器监控
@RestController
@RequestMapping("/server")
public class ServerController {

    @GetMapping("/info")
    public RestResult<Server> getInfo() throws Exception {
        Server server = new Server();
        server.copyTo();
        return ResponseUtil.successWithObj(server);
    }
}
